{extend name="base"}
{block name="content"}
<div class="wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('Video/index')}">视频管理</a></li>
			<li><a href="{:url('Video/add')}">添加视频</a></li>
		</ul>
		<form method="post" class="js-ajax-form" action="term/listorders">
			<table class="table table-hover table-bordered">
				<thead>
					<tr>
						<th width="50">ID</th>
						<th>名称(key)</th>
						<th>图片</th>
						<th>视频地址</th>
						<th>添加时间</th>
						<th>浏览量</th>
						<th width="120">操作</th>
					</tr>
				</thead>
				<tbody>
					{foreach name="list" item="vo"}
					<tr>
						<td>{$vo.id}</td>
						<td>{$vo.title}({$vo.key})</td>
						<td>
							{empty name="vo.thumb"}----
							{else/}
							<img src="{$vo.thumb}" style="height:100px; width:auto;" />
							{/empty}
						</td>
						<td>{$vo.video_url}</td>
						<td>{$vo.datetime|date='Y-m-d H:i:s'}</td>
						<td>{$vo.view_num}</td>
						<td>
							<a href="{:url('Video/edit',['id'=>$vo['id']])}">修改</a>|
							<a href="{:url('Video/del',['id'=>$vo['id']])}" class="js-ajax-delete">删除</a>
						</td>
					</tr>
					{/foreach}
				</tbody>
			</table>
		</form>
	</div>
	<script src="__THEMES__/js/common.js"></script>
{/block}